package com.shark.teach;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @auther shark
 * @create 2024-10-08 10:55
 */
public class AQSDemo
{
    public static void main(String[] args)
    {
        ReentrantLock lock = new ReentrantLock(true);

        lock.lock();
        try
        {

        }finally {
            lock.unlock();
        }

        // AQS = AbstractQueuedSynchronizer,抽象的队列同步器
    }
}
